import React, {
	Component
} from 'react';

import {
    Link,
    // Route,
    // Switch
} from 'react-router-dom';

import { Router } from './../config/router.js'
import { getPath } from './../utils/utils.js';

class PageList extends Component {

	componentWillMount() {
		console.log(this)
	}
	componentDidMount() {}
	componentWillReceiveProps(newProps) {}
	shouldComponentUpdate(newProps, newState) {
		return true;
	}
	componentWillUpdate(nextProps, nextState) {}
	componentDidUpdate(prevProps, prevState) {}
	componentWillUnmount() {}

	render() {
		return (
			<div>
				<Link to={ getPath(Router.client.new.path) }>示例页面</Link>
				<br/>
				<Link to={ getPath(Router.client.new.new1.path) }>示例二级页面</Link>
				<br/>
				<Link to={ getPath(Router.client.new.new1.new2.path) }>示例三级页面</Link>
				<br/>
				<Link to={ getPath(Router.client.comment.merchant.path) }>商户评价</Link>
				<br/>
				<Link to={ getPath(Router.client.comment.product.path) }>商品评价</Link>
		    </div>
		);
	}
}

export default PageList;